package com.xyy.saas.payment.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * 服务器心跳检测接口
 *
 * @author wangtianqi
 * @date 2020/4/22 15:51
 */
@RestController
@RequestMapping(value = {"/api/heartbeat"})
public class HeartbeatController {

    @RequestMapping(value = "/check", method = {RequestMethod.GET, RequestMethod.POST})
    public String check() {
        return "pong";
    }

}
